package rainclass.shijuan2.car;

public class Test {
    public static void main(String[] args) {
        Engine engine = new Engine();
        Gearbox gearbox = new Gearbox();

        engine.setPower(135);
        gearbox.setAmount(6);

        Car jeep = new Car();

        jeep.setGearbox(gearbox);
        jeep.setEngine(engine);

        jeep.show();

    }
}
